package main
import (
	"fmt"
	"time"
)

var ch = make(chan int)

func main(){
	
	go ceshi1()
	go ceshi2()
	
	for{
		
	}
}

func ceshi1(){
	for i := 0; i < 100; i++{
		fmt.Print("1")
		time.Sleep(time.Millisecond)
	}
	ch<-666
}

func ceshi2(){
	fmt.Printf("\nceshi2 run\n")
	<-ch
	for i := 0; i < 100; i++{
		fmt.Print("2")
		time.Sleep(time.Millisecond)
	}
}